package com.kbt.model.data;

import java.io.Serializable;

/**
 * @author zhgk
 * @package: com.kbt.model
 * @TODO: 存放用户收货地址属性
 * @data: 2015/8/14 15:32
 * @version: V1.0
 */
public class UserAddressInfoModel implements Serializable {
    //地址ID
    private String addressId;

    //收获人姓名
    private String userName;
    //收货人手机号
    private String userMobiel;
    //用户身份证号
    private String userIdCardNo;

    private String userSSQ;
    //用户所在省份
    private String userProvince;
    //用户所在城市
    private String userCity;
    //用户所在区
    private String userDistrict;
    //用户详细地址
    private String addressInfo;
    //是否是默认地址
    private boolean isDeafultAddress;

    /**
     * Getter for property 'deafultAddress'.
     *
     * @return Value for property 'deafultAddress'.
     */
    public boolean isDeafultAddress() {
        return isDeafultAddress;
    }

    /**
     * Getter for property 'addressId'.
     *
     * @return Value for property 'addressId'.
     */
    public String getAddressId() {
        return addressId;
    }

    /**
     * Setter for property 'addressId'.
     *
     * @param addressId Value to set for property 'addressId'.
     */
    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    /**
     * Setter for property 'isDeafultAddress'.
     *
     * @param isDeafultAddress Value to set for property 'isDeafultAddress'.
     */
    public void setIsDeafultAddress(boolean isDeafultAddress) {
        this.isDeafultAddress = isDeafultAddress;
    }

    /**
     * Getter for property 'userName'.
     *
     * @return Value for property 'userName'.
     */
    public String getUserName() {
        return userName;
    }

    /**
     * Setter for property 'userName'.
     *
     * @param userName Value to set for property 'userName'.
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * Getter for property 'userMobiel'.
     *
     * @return Value for property 'userMobiel'.
     */
    public String getUserMobiel() {
        return userMobiel;
    }

    /**
     * Setter for property 'userMobiel'.
     *
     * @param userMobiel Value to set for property 'userMobiel'.
     */
    public void setUserMobiel(String userMobiel) {
        this.userMobiel = userMobiel;
    }

    /**
     * Getter for property 'userIdCardNo'.
     *
     * @return Value for property 'userIdCardNo'.
     */
    public String getUserIdCardNo() {
        return userIdCardNo;
    }

    /**
     * Setter for property 'userIdCardNo'.
     *
     * @param userIdCardNo Value to set for property 'userIdCardNo'.
     */
    public void setUserIdCardNo(String userIdCardNo) {
        this.userIdCardNo = userIdCardNo;
    }

    /**
     * Getter for property 'userSSQ'.
     *
     * @return Value for property 'userSSQ'.
     */
    public String getUserSSQ() {
        return userSSQ;
    }

    /**
     * Setter for property 'userSSQ'.
     *
     * @param userSSQ Value to set for property 'userSSQ'.
     */
    public void setUserSSQ(String userSSQ) {
        this.userSSQ = userSSQ;
        if (userSSQ.length() > 0) {
            String[] infoStrs = userSSQ.split(",");
            if (infoStrs.length == 3) {
                userProvince = infoStrs[0];
                userCity = infoStrs[1];
                userDistrict = infoStrs[2];
            }
        }
    }

    /**
     * Getter for property 'addressInfo'.
     *
     * @return Value for property 'addressInfo'.
     */
    public String getAddressInfo() {
        return addressInfo;
    }

    /**
     * Setter for property 'addressInfo'.
     *
     * @param addressInfo Value to set for property 'addressInfo'.
     */
    public void setAddressInfo(String addressInfo) {
        this.addressInfo = addressInfo;
    }

    /**
     * Getter for property 'userProvince'.
     *
     * @return Value for property 'userProvince'.
     */
    public String getUserProvince() {
        return userProvince;
    }

    /**
     * Getter for property 'city'.
     *
     * @return Value for property 'city'.
     */
    public String getCity() {
        return userCity;
    }

    /**
     * Getter for property 'district'.
     *
     * @return Value for property 'district'.
     */
    public String getDistrict() {
        return userDistrict;
    }
}
